Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>The highest number is <span id="demo"></span></p> <script> var points = [40, 100, 1, 5, 25, 10]; points.sort(function(a, b){return b-a}); document.getElementById("demo").innerHTML = points[0]; </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_array_high by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:35:58 GMT --> </html>
Result:
Try it Yourself - © w3schools.com